package fnord.network.server;
import java.io.Serializable;
import fnord.illuminati.card.ActionCard;
import fnord.illuminati.card.IlluminatiCard;

public class Player implements Serializable{
	private static final long serialVersionUID = -7853894808415359583L;
	private static int idCounter = 0;
	
	private IlluminatiCard _myIlluminati;
	private Player _nextPlayer;
	private int _killCount;
	int id;
	
	//TODO: add methods for jovian's stuff
	
	public Player(IlluminatiCard myCard) {
		_killCount = 0;
		_myIlluminati = myCard;
		id = Player.idCounter++;
	}
	
	public boolean sameAs(Player p) {
		return p.id == this.id;
	}
	
	public IlluminatiCard getIlluminati() { return _myIlluminati; }
	
	public void addActionCard(ActionCard c) {
		// TODO Auto-generated method stub
		
	}
	
	public void upKillCount() {
		_killCount++;
		//FATALITY
	}

	public Player nextPlayer() {
		return _nextPlayer;
	}
	
	public void setNextPlayer(Player np) {
		_nextPlayer = np;
	}

	public int getKillCount() {
		return _killCount;
	}

	public String getChatHandle() {
	    return "Player "+id+": ";
    }
	
	public int getID() {
		return id;
	}
}
